package com.demo.kotlin

object Constant {

    const val LAST_APP_VERSION: String = "last_app_version"
    const val APP_ID_WECHAT = "wx512cdf6205e34794"
    const val APP_SECRET_WECHAT = "c3fc8db1e696bd8622533f8c383147d3"

    const val API_KEY = "1122"

    /**
     * 各类APP的包名
     */
    object AppPackageName {
        const val weixin = "com.tencent.mm"
        const val taobao = "com.taobao.taobao"
        const val tianmao = "com.tmall.wireless"
        const val jingdong = "com.jingdong.app.mall"
        const val pinduoduo = "com.xunmeng.pinduoduo"
        const val amap = "com.autonavi.minimap" //高德包名
        const val WhatsApp = "com.whatsapp"
        const val Facebook = "com.facebook.katana"
        const val Gmail = "com.google.android.gm"
    }

    object Address {

        //        val BaseWebUrl = if (!BuildConfig.DEBUG) "http://web.discountuan.com/" else "http://192.168.3.37:9292/"
        val BaseWebUrl = "http://web.discountuan.com/"

        //常见问题地址
        val Common_Problem = BaseWebUrl + "commonProblemList"

        //注册协议
        val Register_Protocol = BaseWebUrl + "strategy?code=regist_user_agreement"

        //隐私政策协议
        val Privacy_Policy_Protocol = BaseWebUrl + "strategy?code=privacy_policy"

        //退货协议
        val Refund_Protocol = BaseWebUrl + "strategy?code=return_policy"

        //拼团协议
        val Group_Protocol = BaseWebUrl + "strategy?code=group_agreement"

        //关于我们
        val About_Us = BaseWebUrl + "strategy?code=about_discount"

        //攻略
        val Strategy = BaseWebUrl + "strategy?code=money_strategy"

        //玩法教程
        val Play_Course = BaseWebUrl + "strategy?code=play_strategy"

        //商品分享地址 分享的描述d(description)，图片i(image)，标题t(title)带在链接后面，图片地址需要先encodeURIComponent编码一次
        const val Goods_Share = "http://share.discountuan.com/?goodsId="

        //红包活动H5地址
        val Red_Envelope = BaseWebUrl + "redPacket"
    }

    object Common {
        //DESIGN_WIDTH、DESIGN_HEIGHT是根据UI设计图来的，一般取宽度适配
        const val DESIGN_WIDTH: Int = 621  //按宽度适配的情况
        const val DESIGN_HEIGHT: Int = 1104  //按高度适配的情况

        const val MinLengthOfLoginPwd = 6  //登录密码最小长度
        const val MinLengthOfPayPwd = 6  //支付密码最小长度
    }

    /**
     * SharePreference使用时的常量
     */
    object SpConst {
    }

    /**
     * Activity跳转时使用到的requestCode
     */
    object RequestCode {
        /**
         * 提现时无卡情况下，添加卡号
         */
        const val Add_Withdraw_Card_Info = 1000

        /**
         * 选择图片
         */
        const val Select_Image = 1001
    }
}